package com.rayson.yututu.util;

import org.springframework.web.context.request.RequestContextHolder;
import org.springframework.web.context.request.ServletRequestAttributes;

import javax.servlet.http.HttpServletRequest;

/**
 * @author: rayson
 * Description:
 * Version: 1.0
 * Date: 2025-01-06 22:49
 */
public class ServletUtil extends cn.hutool.extra.servlet.ServletUtil {

    public static HttpServletRequest getRequest() {
        return ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
    }
}
